﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using eCRAM.Model;

namespace eCRAM.Bll
{
    public interface ICramManager
    {
        /// <summary>
        /// verify if there are in date bas the Cram
        /// corresponding to the value in paramenter
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="year"></param>
        /// <param name="month"></param>
        /// <returns></returns>
        Cram FindCram(Guid userIdr, int month, int yea);

        void InsertCram(Cram cram);

        void InsertCramLine(CramLine cramLine);

        void SaveOrUpDateCram(Cram cram);
    }
}
